import re
s='jsdfhahjdfjasdfh7y8u9y789y1ui34'
print(re.sub('[^a-z]','',s))